import axios from 'axios'
export function request(config){
    const instance = axios.create({
        baseURL:'http://timemeetyou.com:8889/api/private/v1/',
    });
    //请求拦截器，添加token验证
    instance.interceptors.request.use(config => {
        // console.log(config);
        config.headers.Authorization = sessionStorage.getItem('token');
        return config
    });
    return instance(config)
}